package com.zhuss.util;

import java.util.ArrayList;
import java.util.List;

public class ListBean<T> {
	
	private List<T> list = new ArrayList<>(); 
	
	public ListBean<T> build(T item) {
		list.add(item);
		return this;
	}
	
	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}
	
	public static void main(String[] args) {
		System.out.println(new ListBean<Integer>().build(1).build(2).getList());
	}

}
